{template 'member', 'header'}
<?php
$CATEGORYS = getcache('category_content_1','commons');
$MODEL = getcache('model','commons');
?>
<div class="layui-member-center">
  {template 'member', 'left'}
  <div class="layui-member-info">
    <div class="layui-member-content">
      <div class="layui-avatar"><a title="{L('modify').L('avatar')}" href="index.php?m=member&c=index&a=account_manage_avatar&t=1"><img src="{$avatar[90]}" onerror="this.src='{$phpsso_api_url}/statics/images/member/nophoto.gif'"></a></div>
      <p class="layui-msg">嗨，{if $memberinfo['nickname']} {$memberinfo['nickname']} {else} {$memberinfo['username']}{/if}，欢迎你的到来！</p>
      <p class="layui-msg"><span>会员组：<em>{$memberinfo['groupname']}</em></span></p>
    </div>
    <div class="layui-member-favorite">
      <div class="layui-title"><h3>收藏夹</h3></div>
      {pc:member  action="favoritelist" userid="$memberinfo[userid]" num="20"}
        <ul class="layui-favorite-list">
        {loop $data $k $v}
        {php $db = pc_base::load_model('content_model');$db->table_name = $db->db_tablepre.$MODEL[$v['modelid']]['tablename'];$_r = $db->get_one(array('id'=>$v['contentid']));}
          <li><a href="{$_r['url']}" target="_blank"><img src="{$_r['thumb']}?x-oss-process=style/smallpic" alt="{$_r['title']}" /></a></li>
        {/loop}
      </ul>
      {/pc}
    </div>
  </div>
</div>
<script type="text/javascript" src="{JS_PATH}cookie.js"></script>
<script language="JavaScript">
<!--
$(document).ready(function() {
	var announcement = getcookie('announcement_{$memberinfo[userid]}_{$announceid}');
	if(announcement==null || announcement=='') {
		$("#announcement").fadeIn("slow");
	}
});
//-->
</script>
{template 'member', 'footer'}